using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using Sagile.Nepma;

namespace Sagile.Nepma.Test
{
    /// <summary>
    /// Dummy task 4
    /// </summary>
    public class Task4 : TaskBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Task4"/> class.
        /// </summary>
        public Task4() : base("Task4", true, 2)
        {
            Console.WriteLine(this);
            Id = "7EF73B03-8A96-4981-B051-93A5081C2AEA";
        }

        /// <summary>
        /// Method called by the worker thread. Finished event is called at the end of the method.
        /// </summary>
        protected override void Process()
        {
            Thread.Sleep(5000);
            this.Stop();
            base.Process();
        }
    }
}
